﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 托尔斯泰.Wishire.entity
{
    class plan_st
    {
        private int planId;
        private string planName;
        private int accountId;
        private string cityName;
        private string startTime;
        private string endTime;
        private int ifDeleted;
        private DateTime setTime;
        private string empty;
        private string hotelName;
        private double hotelLat;
        private double hotelLng;

        public plan_st(int planId, string planName, int accountId, string cityName, string startTime, string endTime, int ifDeleted, DateTime setTime,
            string empty, string hotelName, double hotelLat, double hotelLng)
        {
            this.planId = planId;
            this.planName = planName;
            this.accountId = accountId;
            this.cityName = cityName;
            this.startTime = startTime;
            this.endTime = endTime;
            this.ifDeleted = ifDeleted;
            this.setTime = setTime;
            this.empty = empty;
            this.hotelName = hotelName;
            this.hotelLat = hotelLat;
            this.hotelLng = hotelLng;
        }
        public plan_st()
        {
            planId = 0;
            accountId = 0;
            cityName = "NULL";
            startTime = "NULL";
            planName = "NULL";
            endTime = "NULL";
            ifDeleted = 0;
            setTime = DateTime.Now.Date;
            empty = "NULL";
            hotelName = "NULL";
            hotelLat = 0;
            hotelLng = 0;
        }
        public int GetPlanId()
        {
            return planId;
        }

        public void SetPlanId(int value)
        {
            planId = value;
        }

        public string GetPlanName()
        {
            return planName;
        }

        public void SetPlanName(string value)
        {
            planName = value;
        }

        public int GetAccountId()
        {
            return accountId;
        }

        public void SetAccountId(int value)
        {
            accountId = value;
        }

        public string GetCityName()
        {
            return cityName;
        }

        public void SetCityName(string value)
        {
            cityName = value;
        }

        public string GetStartTime()
        {
            return startTime;
        }

        public void SetStartTime(string value)
        {
            startTime = value;
        }

        public string GetEndTime()
        {
            return endTime;
        }

        public void SetEndTime(string value)
        {
            endTime = value;
        }

        public int GetIfDeleted()
        {
            return ifDeleted;
        }

        public void SetIfDeleted(int value)
        {
            ifDeleted = value;
        }

        public DateTime GetSetTime()
        {
            return setTime;
        }

        public void SetSetTime(DateTime value)
        {
            setTime = value;
        }

        public string GetEmpty()
        {
            return empty;
        }

        public void SetEmpty(string value)
        {
            empty = value;
        }
        public string GethotelName()
        {
            return hotelName;
        }

        public void SethotelName(string value)
        {
            hotelName = value;
        }
        public double GethotelLat()
        {
            return hotelLat;
        }

        public void SethotelLat(double value)
        {
            hotelLat = value;
        }
        public void SethotelLng(double value)
        {
            hotelLng = value;
        }
        public double GethotelLng()
        {
            return hotelLng;
        }
        public override string ToString()
        {
            /*private int planId;
            private string planName;
            private int accountId;
            private string cityName;
            private string startTime;
            private string endTime;
            private int ifDeleted;
            private DateTime setTime;
            private string empty;
            private string hotelName;
            private double hotelLat;
            private double hotelLng;*/
            string ans = "planId = " + planId + "\n";
            ans += "planName = " + planName + "\n";
            ans += "accountId = " + accountId + "\n";
            ans += "cityName = " + cityName + "\n";
            ans += "startTime = " + startTime + "\n";
            ans += "endTime = " + endTime + "\n";
            ans += "ifDeleted = " + ifDeleted + "\n";
            ans += "setTime = " + setTime + "\n";
            ans += "empty = " + empty + "\n";
            ans += "hotelName = " + hotelName + "\n";
            ans += "hotelLat = " + hotelLat + "\n";
            ans += "hotelLng = " + hotelLng + "\n";
            return ans;
        }
    }
}
